// pages/myActivity/activity-item/activity-item.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    item: {
      type: Object,
      value: {},
      observer(
        value
      ) {
        console.log(value)
      }
    }
  },

  /**
   * 组件的方法列表
   */
  methods: {
    handleGoDetail() {
      let {
        activityId
      } = this.properties.item;
      wx.navigateTo({
        url: `/pages/activityDetail/activityDetail?id=${activityId}`,
      })
      this.triggerEvent("getdetail", activityId)
    }
  }
})